package com.yuju.common.core.dao;

import java.util.List;
import java.util.Map;

import com.yuju.common.PageModel;

public interface IBaseDao<M, P, PK> {
	P getObj(PK id);
	
	int count(Map<Object, Object> map);
	
	List<M> list(Map<Object, Object> map);
	
	PageModel list(M model, Integer currentPage, Integer pageSize);
	
	int save(M model);

	int saveSelective(M model);
	
	int update(M model);
	
	int updateSelective(M model);

	int del(PK id);
}
